FROM node:14.18.2-alpine

# node:14.18.2-alpine

# FROM grandfa8/nodejs14-aws:latest
MAINTAINER PoorBoy 

# 中科大 的源 https://mirrors.ustc.edu.cn/
# 阿里云的源  https://mirrors.aliyun.com/alpine/
# RUN echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/latest-stable/main/" > /etc/apk/repositories 
RUN echo "https://mirrors.aliyun.com/alpine/v3.14/main/" > /etc/apk/repositories

RUN apk update  
RUN apk upgrade 
RUN apk add --no-cache bash  bash-completion 
RUN apk add tzdata
    

RUN cp -r -f /usr/share/zoneinfo/Hongkong /etc/localtime \
    && rm -rf /var/cache/apk/* \
    && /bin/bash

RUN npm config set registry https://registry.npm.taobao.org
RUN npm install -g @quasar/cli

WORKDIR /mysrc
 

EXPOSE 8080

ADD s /opt/

RUN chmod a+x /opt/s
 
ENTRYPOINT ["/opt/s"]
